package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.investor.dto.loan.FundInfoRes;
import com.jrx.anytxn.investor.dto.loan.LoanMainInvestorInfoRes;
import com.jrx.anytxn.investor.entity.AmLoanMainInvestorInfo;

/**
 * 贷款信息service
 *
 * @author 黄秋平
 * @create 2020/6/18
 */
public interface ILoanMainInvestorInfoService {


    /**
     * 根据以下条件查询出资方贷款信息
     * @author fan.yang
     * date: 2020/6/24 0024 下午 14:22
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param investorId 出资方ID
     * @return com.jrx.anytxn.investor.entity.AmLoanMainInvestorInfo
     */
    LoanMainInvestorInfoRes getInfoByInveLoanIdAndCusId(String tenantId, String customerId, String investorId) throws TxnException;

    /**
     * 根据以下条件查询资金源及资金方相关信息
     * @author fan.yang
     * date: 2020/6/24 0024 下午 17:35
     * @param tenantId 租户ID
     * @param loanId 订单ID
     * @param fundId 资金源ID
     * @param customerId 客户ID
     * @return com.jrx.anytxn.investor.dto.loan.FundInfoRes
     */
    FundInfoRes getFundAndInvestorInfo(String tenantId, String loanId, String fundId, String customerId) throws TxnException;
}
